.class public Lcom/waiqin365/base/login/a/b;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/base/login/a/b;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/base/login/a/b;->b:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/login/a/b;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/a/b;->a:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/a/b;->b:Ljava/util/List;

    invoke-virtual {p0}, Lcom/waiqin365/base/login/a/b;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/a/b;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/a/b;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 8

    const/4 v7, 0x7

    const/4 v3, 0x0

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/a/b;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0302db

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/base/login/a/d;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/login/a/d;-><init>(Lcom/waiqin365/base/login/a/b;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c0eba

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/base/login/a/d;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0ebb

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/base/login/a/d;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0eb9

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/base/login/a/d;->c:Landroid/widget/ImageView;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/login/a/b;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/zydk/e;

    iget-object v2, v1, Lcom/waiqin365/base/login/a/d;->a:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->b()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->c()Ljava/lang/String;

    move-result-object v5

    new-array v6, v7, [Z

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v2

    if-ne v2, v7, :cond_2

    move v2, v3

    :goto_1
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v4

    if-ge v2, v4, :cond_2

    invoke-virtual {v5, v2}, Ljava/lang/String;->charAt(I)C

    move-result v4

    const/16 v7, 0x31

    if-ne v4, v7, :cond_1

    const/4 v4, 0x1

    :goto_2
    aput-boolean v4, v6, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/a/d;

    move-object v1, v0

    goto :goto_0

    :cond_1
    move v4, v3

    goto :goto_2

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/base/login/a/d;->b:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/base/login/a/b;->a:Landroid/content/Context;

    invoke-static {v3, v6}, Lcom/waiqin365/base/login/d/g;->a(Landroid/content/Context;[Z)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->f()Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/base/login/a/d;->c:Landroid/widget/ImageView;

    const v3, 0x7f02036e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_3
    iget-object v2, v1, Lcom/waiqin365/base/login/a/d;->c:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v0, v1, Lcom/waiqin365/base/login/a/d;->c:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/base/login/a/c;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/login/a/c;-><init>(Lcom/waiqin365/base/login/a/b;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_3
    iget-object v2, v1, Lcom/waiqin365/base/login/a/d;->c:Landroid/widget/ImageView;

    const v3, 0x7f02036d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_3
.end method
